﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cmd;

namespace cmd.Test
{
    class TestConverter : BaseTypeConverter<TestType>
    {
        public override TestType ConvertFromString(string value)
        {
            TestType t = new TestType();
            t.Value = int.Parse(value);
            return t;
        }

        public override string ConvertToString(object value)
        {
            if (value == null)
            {
                return null;
            }
            return (value as TestType).Value.ToString();
        }
    }
}
